package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.MeltCloudUsergroup;
import com.yami.shop.dao.MeltCloudUsergroupMapper;
import com.yami.shop.service.MeltCloudUsergroupService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
@AllArgsConstructor
public class MeltCloudUsergroupServiceImpl extends ServiceImpl<MeltCloudUsergroupMapper, MeltCloudUsergroup> implements MeltCloudUsergroupService {
    
    private final MeltCloudUsergroupMapper usergroupMapper;
    
    @Override
    public List<MeltCloudUsergroup> getByUserId(Long groupId, String userId) {
        return usergroupMapper.getByUserId(groupId, userId);
    }


    @Override
    public List<MeltCloudUsergroup> getByChannelId(Long groupId, String channelId) {
        return usergroupMapper.getByChannelId(groupId, channelId);
    }
}
